#!/sbin/openrc-run

supervisor=supervise-daemon

name=ympd
description="MPD Web GUI"

command=/usr/bin/$name
command_args="-u $ympd_user"

depend() {
        use logger dns
        need net
        after firewall
}

start_pre() {
        checkpath --directory --owner "$ympd_user" \
			--mode 0775 /var/run/"$name"
}
